package cn.fengzhilun.javase.day06;

public class Boss {
	public void pay(Employee p) {
		
	System.out.println("员工发工资了"+p.getSalary());	
	}
	public void pay(Manager p) {
		
		System.out.println("经理给你发工资了"+p.getSalary());	
		}
	public void Pay(Programmer p){
	System.out.println("程序员给你发工资了" +p.getSalary());	
		
	}
}
